#ifndef USERMODIFYROLE_H
#define USERMODIFYROLE_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include <QGraphicsBlurEffect>
#include "blldataflow.h"
#include "sqlhelper.h"
#include "msgbox.h"

namespace Ui {
class UserModifyRole;
}

class UserModifyRole : public QWidget
{
    Q_OBJECT

public:
    explicit UserModifyRole(QWidget *parent = nullptr);
    ~UserModifyRole();

private slots:
    void on_btnConfirm_clicked();

    void on_btnCancel_clicked();
    void setUser(User user);
    void showAllRoles();

    void on_btnClose_clicked();
    void retranslateUiSlot();

private:
    void initWidget();

protected:
    void paintEvent(QPaintEvent *event);

private:
    Ui::UserModifyRole *ui;
    BllDataFlow * bdf;
    SqlHelper * sqlHelper;
    User user;
};

#endif // USERMODIFYROLE_H
